<?php
/**
* 缓存模块示例
* <code>
* //调用
* $test = self::loadCache('Test', array());
* </code>
* @author wiki <wu.kun@gmail.com>
* @copyright (c) 2010-03-17
* @version v1.0
* @package Modules
* @link /index.php?c=CacheTest&a=register&moduleName=Test 注册
* @link /index.php?c=CacheTest&a=show&moduleName=Test     显示
* @link /index.php?c=CacheTest&a=refresh&moduleName=Test  刷新
*/
class Modules_Test extends ME_DAL_FileCacheModule
{
	/**
	* 缓存依赖
	*/
	protected $_depend = array();

	/**
	* 缓存过期时间
	*/
	protected $_expire = 3600;

	public function refresh(array $param = array())
	{
	    $sql = "SHOW TABLES";
	    
		$data = Db_Test::instance()->getAll($sql);
		$this->set(array(), $data);
	}
}
